Temporary fix to ensure store page is accessible to domain.
authordjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Wed, 7 Sep 2005 16:51:28 +0000 (10:51 -0600)
committerdjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Wed, 7 Sep 2005 16:51:28 +0000 (10:51 -0600)
xen/arch/ia64/xen/dom_fw.c

index d606edafe20747ea5b69fb15f6b674f358850d06..fa9df2f23c258b2d268ef1e2c4c314f2669c1a15 100644 (file)
@@ -512,6 +512,10 @@ dom_fw_init (struct domain *d, char *args, int arglen, char *fw_mem, int fw_mem_
                return 0;
        }
 */
+       /* Last page is for xenstore, and not exported to domain */
+       if (d != dom0)
+               maxmem = (d->max_pages - 1) * PAGE_SIZE;
+
        memset(fw_mem, 0, fw_mem_size);
 
 #ifdef XEN